# 登陆
login_data = {"userName": "", "password": ""}

# 隐患上报数据
except_data = {
    "findPerson": "",
    "createBy": "",
    "content": "",
    "findDept": "点检部门",
    "line": "4",
    "deviceId": 193585,
    "deviceName": "非设备",
    "findDate": 1629435646675,
    "source": "手动新增",
    "remark": "测试数据",
    "orgCode": "",
    "images": [
        "http://192.168.10.152:9001/ygdjplat/img/1560ea551e4941cf93440b18ff9190eb.jpg"
    ]
}
# 设备查询
equip_data = {"orgCode": "", "pageNo": 1, "pageSize": 10}

# 隐患指派
handler_data = {
    "timeshow": [
        1629475200000,
        1629475200000
    ],
    "handlerType": 1,
    "executor": "钱欢益",
    "executorId": 266,
    "executorName": "钱欢益",
    "planStart": 1632931200000,
    "planEnd": 1638201600000,
    "line": 4,
    "type": 1,
    "proLevel": 1,
    # 隐患的id需要获取
    "id": 196

}
# 隐患查询
handler_query = {
    "state": "0", "pageNo": 1, "pageSize": 5, "areaId1": "", "areaId2": "", "findPerson": ""}

# 编辑作业卡查询
jbcd_query = {"shopCodes": "", "lineCode": 4, "source": 1, "status": 0, "pageNo": 1, "directorId":1,
              "pageSize": 50}

# 查询检修作业人员
getUsers_query = {"keyWord": "", "orgCode": "", "profession": "", "pageNo": 1, "pageSize": 10}

jbcd_data = {
    "acceptancerList": [
        {
            "userName": "钱欢益",
            "userId": 266,
            "status": 2
        }
    ],
    "jcId": 973,
    "lineName": "设备",
    #四方审核
    "auditorList": [
        {
            "maUserBoList": [
                {
                    "userName": "",
                    "userId": 266,
                    "status": 2
                }
            ],
            "lineId": 2,
            "lineName": "安全"
        }
    ],
    "jobContent": "作业卡内容测试20210825",
    "type": 1,
    "maintainerList": [
        {
            "userName": "钱欢益",
            "userId": 266

        }
    ],
    "lineCode": "4",
    "conclusion": "结论",
    "planStart": 1632931200000,
    "prepareJob": "准备工作",
    "directorName": "钱欢益",
    "areaName": "影响区域",
    "planLong": 3,
    "plantManagerName": "钱欢益",
    "courseConfirmerList": [
        {
            "userName": "",
            "userId": 266,
            "status": 2
        }
    ],

    "plantManagerId": 266,

    "jury": "应急措施",
    "directorId": 266,
    "lineId": 4,
    "acceptProject": "验收项目",
    "acceptStandard": "验收标准",
    "delistorList": [
        {
            "userName": "钱欢益",
            "userId": 266,
            "status": 2
        }
    ],
    "confirmJobBoList": [
        {
            "confirmerBoList": [
                {
                    "userName": "钱欢益",
                    "userId": 266
                }
            ],
            "lineId": 4,
            "lineName": "设备",
            "content": "内容"
        },
        {
            "confirmerBoList": [
                {
                    "userName": "钱欢益",
                    "userId": 266
                }
            ],
            "lineId": 1,
            "lineName": "生产",
            "content": "内容"
        },
        {
            "confirmerBoList": [
                {
                    "userName": "钱欢益",
                    "userId": 266
                }
            ],
            "lineId": 2,
            "lineName": "安全",
            "content": "内容"
        }
    ],
    "planEnd": 1638201600000,
    "constructionPlan": "施工方案",
    "scorerList": [
        {
            "userName": "钱欢益",
            "userId": 266,
            "status": 2
        }
    ]
}

# 下发作业卡数据
isjbcd_data = {
    "jcId": 974,
    "define": "main2"
}

# 查询任务列表
tasklist_data = {
    "pageNo": 1,
    "pageSize": 50,
    "isFinish": 0,
    "userId": 266,
    "define": "main2"


}

# 作业卡确认 4
zykqr_sept1_data = {
    "processInstanceId": "",
    "taskId": "",
    "jcId": 1063,
    "userId": 4584,
    "define": "main2",
    "isAdjust": 0,
    "result": 1,
    "message": ""
}
# 四方确认 6
sfsh_sept2_data = {
    "processInstanceId": "",
    "taskId": "",
    "taskName": "四方审核",
    "jcId": 1063,
    "isAdjust": 0,
    "define": "main2",
    "userId": 4584,
    "result": 1,
    "message": "备注信息",
    "type": 1,
    "picPathList": [
    ]
}

# 厂长审批  8

czsh_sept3_data = {"processInstanceId": "",
                   "taskId": "", "jcId": 1063, "isAdjust": 0,
                   "define": "main2", "userId": 4584, "result": 1, "message": "我是厂长 意见说明1"}

# 施工前确认(接口和四方一致 type 参数不同)10

sgqr_sept4_data = {
    "processInstanceId": "fcf36942-03e4-11ec-8a52-18c04d1eb514",
    "taskId": "66e3620b-0482-11ec-ab4d-18c04d1eb514",
    "taskName": "施工确认",
    "jcId": 1063,
    "isAdjust": 0,

    "define": "main2",
    "userId": 4584,
    "result": 1,
    "message": "fsfsf",
    "type": 2,
    "picPathList": [
        "http://192.168.10.152:9001/ygdjplat/img/f7e960e9838e454a85149efa005379ae.jpg"
    ]
}

# 安全交底 14
# /ps/maintenanceController/securityTold
aqjd_sept5_data = {
    "processInstanceId": "",
    "taskId": "",
    "jcId": 1063,
    "isAdjust": 0,
    "define": "main2",
    "taskName": "安全交底",
    "userId": 4584,
    "picPathList": [
    ]
}

# 过程确认 /ps/maintenanceController/confirmCourse
gcqr_sept6_data = {
    "processInstanceId": "",
    "taskId": "",
    "jcId": 1063,
    "define": "main2",
    "userId": 4584,
    "result": 1,
    "message": "备注过程曲确认",
    "picPathList": [
        "http://192.168.10.152:9001/ygdjplat/img/bd0136719ee64df58643e01e156d49a1.jpg"
    ]
}

# 摘牌
# /ps/maintenanceController/delist
zpry_sept7_data = {
    "processInstanceId": "",
    "taskId": "",
    "jcId": 1063,
    "define": "main2",
    "taskName": "摘牌",
    "userId": 4584,
    "message": "摘牌备注",
    "picPathList": [
        "http://192.168.10.152:9001/ygdjplat/img/35b22bf7a2be4e45b6c6268757a6bbb0.jpg"
    ]
}

# 调试验收
tsys_sept8_data = {
    "processInstanceId": "",
    "taskId": "",
    "jcId": 1063,
    "define": "main2",
    "userId": 4584,
    "result": 1,
    "message": "验收结果 500字限制",
    "picPathList": [
        "http://192.168.10.152:9001/ygdjplat/img/856d02d70447499fb611a520fdf12f9e.jpg"
    ]
}

# 总结打分
zjdf_sept9_data = {
    "processInstanceId": "",
    "taskId": "",
    "jcId": 1063,
    "define": "main2",
    "taskName": "总结打分",
    "userId": 4584,
    "userName": "",
    "goal": 96.5,
    "goalDetailBoList": [
        {
            "item": "施工准备",
            "weight": 0.1,

            "score": 9

        },
        {
            "item": "施工安全管理",
            "weight": 0.25,
            "score": 25

        },
        {
            "item": "施工进度管理",
            "weight": 0.25,
            "score": 22.5

        },
        {
            "item": "施工质量管理",
            "weight": 0.3,
            "score": 30

        },
        {
            "item": "现场5S管理",
            "weight": 0.1,
            "score": 10
        }
    ],
    "conclusion": "总结打分评论"
}




jbcd_data_only = {
    "acceptancerList": [
        {
            "userName": "钱欢益",
            "userId": 266,
            "status": 2
        }
    ],
    "jcId": 973,
    "lineName": "设备",
    #四方审核
    "auditorList": [
        {
            "maUserBoList": [
                {
                    "userName": "",
                    "userId": 266,
                    "status": 2
                }
            ],
            "lineId": 2,
            "lineName": "安全"
        }
    ],
    "jobContent": "作业卡内容测试20210825",
    "type": 1,
    "maintainerList": [
        {
            "userName": "钱欢益",
            "userId": 266

        }
    ],
    "lineCode": "4",
    "conclusion": "结论",
    "planStart": 1632931200000,
    "prepareJob": "准备工作",
    "directorName": "钱欢益",
    "areaName": "影响区域",
    "planLong": 3,
    "plantManagerName": "钱欢益",
    "courseConfirmerList": [
        {
            "userName": "",
            "userId": 266,
            "status": 2
        }
    ],
    #开工气体监测
    "gasDetectionBoList": [
        {
            "unit": "OHsUDP3",
            "standardLowValue": 6157.06,
            "standardValue": 2550.27,
            "gdId": 210,
            "detectionMethod": "手动检测",
            "type": 2,
            "projectName": "二氧化碳",
            "cycle": 30
        }
    ],

    "plantManagerId": 266,

    "jury": "应急措施",
    "directorId": 266,
    "lineId": 4,
    "acceptProject": "验收项目",
    "acceptStandard": "验收标准",
    "delistorList": [
        {
            "userName": "钱欢益",
            "userId": 266,
            "status": 2
        }
    ],
    "confirmJobBoList": [
        {
            "confirmerBoList": [
                {
                    "userName": "钱欢益",
                    "userId": 266
                }
            ],
            "lineId": 2,
            "lineName": "安全",
            "content": "内容"
        }

    ],
    "planEnd": 1638201600000,
    "constructionPlan": "施工方案",
    "scorerList": [
        {
            "userName": "钱欢益",
            "userId": 266,
            "status": 2
        }
    ]
}



